import request from '@/utils/request'

// 获取财务结算提现管理列表信息
export function getCashManageList(params) {
  return request({
    url: '/ops/withdrawalRecord/getDistributorRecordList',
    method: 'get',
    params: { tenantId: params }
  })
}

// 获取财务结算提现管理结算单列表信息
export function getSettleAccount(tenantId, selectTime) {
  return request({
    url: '/ops/withdrawalRecord/getSettleAccount',
    method: 'get',
    params: { tenantId: tenantId, selectTime: selectTime }
  })
}

// 生成财务结算提现管理结算记录列表信息
export function addWithdrawalRecord(data) {
  return request({
    url: '/ops/withdrawalRecord/addWithdrawalRecord',
    method: 'post',
    data
  })
}

// 获取财务结算账户管理提现记录列表信息
export function getCashWithdrawalRecord(params) {
  return request({
    url: '/ops/withdrawalRecord/getDistributorRecordListByDistributorId',
    method: 'get',
    params: { distributorId: params }
  })
}

// 通过或驳回财务结算账户管理提现申请
export function updateBillRecord(data) {
  return request({
    url: '/ops/withdrawalRecord/updateDistributorRecord',
    method: 'post',
    data
  })
}

